<include file="../Public/_header" />
<div class="so_main">
  <div class="page_tit"><eq name="type" value="edit">编辑组件<else/>添加组件</eq></div>
  
  <eq name="type" value="add">
  <form method="post" action="{:U('admin/Widget/doAddWidget')}">
  <else/>
  <form method="post" action="{:U('admin/Widget/doEditWidget')}">
  	<input type="hidden" name="id" value="{$id}" />
  </eq>
  
  <div class="form2">
    <dl class="lineD">
      <dt>组件名称：</dt>
      <dd>
        <input name="widget_name" id="widget_name" type="text" value="{$widget_name}">
    </dl>
	
    <dl class="lineD">
      <dt>组件别名：</dt>
      <dd>
        <input name="widget_alias" id="widget_alias" type="text" value="{$widget_alias}">
    </dl>
	
   <!-- <dl class="lineD">
      <dt>组件参数：</dt>
      <dd>
        <input name="params" id="params" type="text" value="{$params}">
    </dl>-->
    
    <dl class="lineD">
      <dt>组件类型：</dt>
      <dd>
	    <select id="widget_type" name="widget_type">
            <volist name="widget_types" id="vo">
            	<option value="{$key}" <php>if($key==$widget_type) echo 'selected';</php>>{$vo}</option>
            </volist>
	    </select>
    </dl>

    <dl class="lineD">
      <dt>是否启用：</dt>
      <dd>
        <label><input name="status" type="radio" value="1" <eq name="status" value="1">checked</eq>>是</label>
        <label><input name="status" type="radio" value="0" <neq name="status" value="1">checked</neq>>否</label>
    </dl>
	 
	<dl>
      <dt>组件简介：</dt>
      <dd>
       <textarea rows="6" cols="40" id="description" name="description">{$description}</textarea>
      </dd>
    </dl>
	
    <div class="page_btm">
      <input type="submit" class="btn_b" value="确定" />
    </div>
  </div>
  </form>
</div>
<include file="../Public/_footer" />